FROM anapsix/alpine-java:8_server-jre_unlimited


RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN mkdir -p /gateway

WORKDIR /gateway

ADD ./target/mesh-app-gateway-1.0.0.jar ./

EXPOSE 16017
EXPOSE 5056
CMD sleep 3;java -Djava.security.egd=file:/dev/./urandom -Dreactor.netty.pool.leasingStrategy=lifo -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5056  -Dspring.profiles.active=docker mesh-app-gateway-1.0.0.jar